// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import Vuex from 'vuex'
import 'normalize.css'
import '@/assets/stylus/app.styl';
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import icon from './icons/iconfont.js'
import './icons/iconfont.css'
import Svgicon from '@/components/common/SvgIcon/index'
import Vuerify from 'vuerify'
import store from './store/index'
import Time from '@/directive/time.js'
Vue.use(Vuerify,{
  
})


Vue.component('icon-svg',Svgicon)

Vue.directive('time', {
  bind: function(el, binding) {
      el.innerHTML = Time.getFormateTime(binding.value);
      el.__timeout__ = setInterval(() => {
          el.innerHTML = Time.getFormateTime(binding.value);
      }, 60000);
  },
  unbind: function() {
      clearInterval(el.__timeout__);
      delete el.__timeout__;
  }
})

Vue.config.productionTip = false

Vue.use(ElementUI);
/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  store,
  components: { App },
  template: '<App/>'
})
